﻿using NuGet;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OD.ProjectCustomizationTool.Helpers
{
    internal static class IPackageAssemblyReferenceExtensions
    {
        /// <summary>
        /// <see cref="System.IO.Path.GetFileNameWithoutExtension"/>
        /// </summary>
        public static String ShortName(this IPackageAssemblyReference packageAssemblyReference)
        {
            return Path.GetFileNameWithoutExtension(packageAssemblyReference.Name);
        }
    }
}
